import { ColumnProps } from "/@/components/ProTable/interface";
import { genderType, userLocked } from "/@/utils/serviceDict";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },
        {
            prop: "username",
            label: "操作用户",
            search: true,
            width: 140,
        },
        {
            prop: "startTime",
            label: "开始时间",
            width: 160,
        },
        {
            prop: "endTime",
            label: "结束时间",
            width: 160,
        },
        {
            prop: "spendTime",
            label: "耗时(豪秒)",
            width: 100,
        },
        {
            prop: "uri",
            label: "请求URI",
            width: 200,
            search: true,
        },
        {
            prop: "ip",
            label: "请求IP",
            width: 140,
            search: true,
        },
        {
            prop: "method",
            label: "请求方法",
            width: 140,
        },
        {
            prop: "code",
            label: "状态码",
            width: 140,
            search: true,
        },
        {
            prop: "msg",
            label: "返回信息",
            width: 140,
        },
        {
            prop: "description",
            label: "接口信息",
            width: 140,
        },
        {
            prop: "platform",
            label: "操作平台",
            width: 140,
        },
        {
            prop: "operation",
            label: "操作",
            width: 100,
            fixed: "right"
        }
    ]
}

export default columns;